import request from '@/utils/request'
export function del(id) {
  return request({
    url: '/customer/order/'+id,
    method: 'delete'
  })
  }
export function list(data) {
    return request({
      url: '/customer/order/list',
      method: 'get',
      params: data
    })
}
export function search(id) {
  return request({
    url: `/customer/order/${id}`,
    method: 'get',
  })
}
export function put(data) {
  return request({
    url: '/customer/order',
    method: 'put',
    data: data
  })
}
export function add(data) {
  return request({
    url: '/customer/order',
    method: 'post',
    data: data
  })
}
export function getData00(data) {
  return request({
    url: '/customer/customer/list',
    method: 'get',
    params: data
  })
}
// 客户等级查询
export function queryLevel(data) {
  return request({
    url: "/customer/grade/list",
    method: "get",
    params: data
  });
}
export function getLabels (data) {
  return request({
    url: '/customer/lablemanager/list',
    method: 'get',
    params: data
  })
}
export function oderType (data) {
  return request({
    url: '/order/type/list',
    method: 'get',
    params: data
  })
}
export function exportOrderList(query) {
  return request({
    url: '/customer/order/export',
    method: 'get',
    params:query
  })
}
// 获取汇率列表
export function getList(data) {
  return request({
    url: "/system/exchange/list",
    method: "get",
    params: data
  });
}
// 添加付款记录
export function paySure(data) {
  return request({
    url: "/record/add",
    method: "get",
    params: data
  });
}
